import { createApp } from "vue";
import App from "./App.vue";
// 全局注册组件
import Post from "./components/Post.vue";
const app = createApp(App);
app.directive("roles", {
  updated(el, binding) {
    // 处理逻辑
    console.log(binding.value);
    if (binding.value == "admin") {
    } else {
      el.style.display = "none";
    }
  },
});
app.mount("#app");

